package com.wing.wcabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageInventoryInout;
import com.wing.cabinet.model.entity.UseInventoryInout;
import com.wing.cabinet.model.request.CellInventoryInoutDetailForm;
import com.wing.cabinet.model.request.UseInventoryInoutDetailForm;
import com.wing.wcabinet.model.entity.WcabCellInventoryInout;
import com.wing.wcabinet.model.entity.WcabUseInventoryInout;
import com.wing.wcabinet.model.entity.WcabUseInventoryInoutDetail;
import com.wing.wcabinet.model.request.WcabCellInventoryInoutDetailForm;
import com.wing.wcabinet.model.request.WcabUseInventoryInoutDetailForm;
import com.wing.wcabinet.model.response.WcabUseInventoryInoutDetailVO;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜领取/暂存柜上/暂存/维修/回收明细-Service
 *
 * @author
 */
public interface WcabUseInventoryInoutDetailService extends IService<WcabUseInventoryInoutDetail> {

    /**
     * 添加
     *
     * @param wcabUseInventoryInoutDetailForm
     * @return
     */
    int add(WcabUseInventoryInoutDetailForm wcabUseInventoryInoutDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<WcabUseInventoryInoutDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<WcabUseInventoryInoutDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    WcabUseInventoryInoutDetailVO get4appById(Long id);

    WcabUseInventoryInout inventoryIn(List<WcabCellInventoryInoutDetailForm> list, Long cellInventoryInoutId, WcabCellInventoryInout.BusinessType businessType, String deviceCode, String orderCode);

    void  inventoryOut(List<WcabCellInventoryInoutDetailForm> list, Long wcabCellInventoryInoutId, String deviceCode, WcabCellInventoryInout.BusinessType businessType);
}
